package _4JianZaoZhe;

import _4JianZaoZhe.impl.sub.ChickenBurger;
import _4JianZaoZhe.impl.sub.Coke;
import _4JianZaoZhe.impl.sub.Pepsi;
import _4JianZaoZhe.impl.sub.VegBurger;

/**
 * @MealBuilder: Meal 对象的 创建者
 * @author: ZBoHang
 * @time: 2021/9/7 11:47
 */
public class MealBuilder {
    public Meal VegPeopleMealOne() {
        Meal meal = new Meal();
        meal.addItem(new VegBurger());
        meal.addItem(new Coke());
        return meal;
    }

    public Meal VegPeopleMealTwo() {
        Meal meal = new Meal();
        meal.addItem(new VegBurger());
        meal.addItem(new Pepsi());
        return meal;
    }

    public Meal NonVegPeopleMealOne() {
        Meal meal = new Meal();
        meal.addItem(new ChickenBurger());
        meal.addItem(new Coke());
        return meal;
    }

    public Meal NonVegPeopleMealTwo() {
        Meal meal = new Meal();
        meal.addItem(new ChickenBurger());
        meal.addItem(new Pepsi());
        return meal;
    }
}
